﻿using Odin.Contracts.Services;
using Odin.Execution;
using Odin.Runners.CommandLine.Resources;

namespace Odin.Runners.CommandLine.Arguments
{
	public class WebSite : ArgumentHandler
	{
		public override string Name { get { return "WebSite"; } }
		public override string Description { get { return ArgumentDescriptions.WebSite; } }

		public override void Execute(string value)
		{
			var configuration = Core.Kernel.Get<IConfiguration>();
			configuration.WebServer.PhysicalPath = value;
		}
	}
}
